package com.lzg.dependencyInversion.youhua;

/**
 * @Author lizhigang Date: 2019/9/8 21:13
 * @description:依赖倒置测试
 */
public class DIPlushTest {
    public static void main(String[] args) {
        Rongjin rongjin = new Rongjin();
        rongjin.setCourse(new javaCourse());
        rongjin.study();

        rongjin.setCourse(new GroovyCourse());
        rongjin.study();
        //如果学AI ....扩展是不是非常容易了

    }

}
